<template>
  <el-image :src="src" fit="cover">
    <div slot="error" class="scale-down">
      <span>请先上传图片</span>
    </div>
  </el-image>
</template>

<script>
export default {
  name: 'Zimage',
  props: {
    'src': {
      type: String,
      default () {
        return ''
      }
    }
  }
}
</script>
<style>
  .image-slot {
    color: #fff;
    text-align: left;
    height: 50px;
  }
</style>
